package org.discala.samples.complex.chef

import org.scalatest.FlatSpec
import org.scalatest.matchers.ShouldMatchers

/**
 * @author Chris Turner
 */
class MixingBowlSec extends FlatSpec with ShouldMatchers {

  private class Fixture extends VesselComponent {
    val vessel = () => new MixingBowl
  }

  private def withFixture(testFunction: (Fixture) => Unit) = {
    testFunction(new Fixture)
  }

  "A mixing bowl" should "describe its contents" in {
    withFixture {
      (fixture: Fixture) => {
        fixture.vessel().describeContents should be ("pat\u00e9 of thin air")
      }
    }
  }
}